<template>
  <div>
    校验cookie
  </div>
</template>
 
<script>
import Cookies from 'js-cookie'

export default {
  name: "check",
  data() {
    return {

    };
  },
  created() {
    const session = Cookies.get('SESSION')
    if (!session) {
      this.$router.push('/auth');
    }else {
      //未校验cookie
      if (session) {
        this.$router.push('/auth');
      }
    }
  },
  methods: {

  }
};
</script>
 
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>